-- GENERATED SPELL FOR [Anvilrage Overseer] --


function spell0_8889(pUnit, Event) --@Haste Aura,Self--
pUnit:FullCastSpellOnTarget(13589,pUnit)
pUnit:RegisterEvent('Sorts_8889', 629, 1)
end

function spell1_8889(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(15580,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8889', 551, 1)
end

function Sorts_8889(pUnit, Event)
local choix_sorts_8889 = math.random(0, 1)
if choix_sorts_8889 == 0 then
pUnit:RegisterEvent('spell0_8889', 1, 1)
end
if choix_sorts_8889 == 1 then
pUnit:RegisterEvent('spell1_8889', 1, 1)
end
end

function mob8889_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8889', math.random(1500, 3000), 1)
end

function mob8889_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8889_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8889_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8889, 1, 'mob8889_Action')
RegisterUnitEvent(8889, 2, 'mob8889_Leave')
RegisterUnitEvent(8889, 3, 'mob8889_Kill')
RegisterUnitEvent(8889, 4, 'mob8889_Die')
